package cc.bluemc.modules.weixin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
@Table(name="t_wx_qrcord")
public class WxQrcordEntity implements Serializable{
    private Integer id;

    /**
     * 生成的ticket
     **/
    private String ticket;

    /**
     * 有效时间
     **/
    private int expireseconds;

    private String url;

    /**
     * 二维码地址
     **/
    private String imgurl;

    /**
     * 创建时间
     **/
    private Date createTime;

    /**
     * 公众号ID
     **/
    private String appid;

    /**
     * 创建人
     **/
    private Integer createUserId;

    /**
     * 二维码类型
     **/
    private WxQrcordType actionName;

    /**
     * 二维码参数
     **/
    private String param;

    private String sceneName;

    private Long newUserNum;
    private Long oldUserNum;

    public Long getNewUserNum() {
        return newUserNum;
    }

    public void setNewUserNum(Long newUserNum) {
        this.newUserNum = newUserNum;
    }

    public Long getOldUserNum() {
        return oldUserNum;
    }

    public void setOldUserNum(Long oldUserNum) {
        this.oldUserNum = oldUserNum;
    }

    public WxQrcordEntity() {
    }


    public void setId(Integer id) {
        this.id = id;
    }
	 @Id
    public Integer getId() {
        return id;
    }

    public void setTicket(String ticket) {
        this.ticket = ticket;
    }
    public String getTicket() {
        return ticket;
    }

    public int getExpireseconds() {
        return expireseconds;
    }

    public void setExpireseconds(int expireseconds) {
        this.expireseconds = expireseconds;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public String getUrl() {
        return url;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }
    public String getImgurl() {
        return imgurl;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getCreateTime() {
        return createTime;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }
    public String getAppid() {
        return appid;
    }

    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }
    public Integer getCreateUserId() {
        return createUserId;
    }

    public WxQrcordType getActionName() {
        return actionName;
    }

    public void setActionName(WxQrcordType actionName) {
        this.actionName = actionName;
    }

    public void setParam(String param) {
        this.param = param;
    }
    public String getParam() {
        return param;
    }

    public String getSceneName() {
        return sceneName;
    }

    public void setSceneName(String sceneName) {
        this.sceneName = sceneName;
    }
}
